using System;

namespace GetKlient.Models
{
    public class Token
    {
        public required string AccessToken { get; set; }
    }

    public class ContentItem
    {
        public string? OpenId { get; set; }
        public string? Title { get; set; }
    }

    public class Instances
    {
        public ContentItem[]? Content {get;set;}
    }

    public class PassagewayData
    {
        public string? passagewayId { get; set; }
        public DateTime Time { get; set; }
        public int In { get; set; }
        public int Out { get; set; }
        public int Passing { get; set; } 
    }

    public class InOutData
    {
        public PassagewayData[]? Content {get; set;} 
    }

    public class OpenId
    {
        public string? OpenIdValue { get; set; }
    }

     public class Passageway
    {
        public string? PassagewayId { get; set; }
        public OpenId[]? DevicesOpenID { get; set; }
    }

    public class DetailContent
    {
        public string? OpenId { get; set; }
        public string? Title { get; set; }
        public Passageway[]? Passageways { get; set; }
    }

    public class Detail
    {
        public DetailContent? Content { get; set; }
    }
}